<?php
namespace app\admin\validate\Meta;
use yzh52521\validate\Validate;

class WebMessageValidate extends validate{

	/**
	 *@description 验证器规则
	 *@buildcode(true)
	*/
	protected $rule = [
		'meta_id'=>['require'],
		'userType'=>['require'],
		'message'=>['require'],
	];

	/**
	 *@description 错误提示
	 *@buildcode(true)
	*/
	protected $message = [
		'meta_id.require'=>'meta_id不能为空',
		'userType.require'=>'角色不能为空',
		'message.require'=>'信息不能为空',
	];

	/**
	 *@description 验证场景
	 *@buildcode(true)
	*/
	protected $scene  = [
		'add'=>['meta_id','userType','message'],
		'update'=>['meta_id','userType','message'],
	];



}